package org.dromara.system.domain.bo;

import org.dromara.system.domain.CmsContainerUseingLog;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 容器历史使用轨迹业务对象 cms_container_useing_log
 *
 * @author Lion Li
 * @date 2025-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CmsContainerUseingLog.class, reverseConvertGenerate = false)
public class CmsContainerUseingLogBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 容器id
     */
    @NotNull(message = "容器id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long containerId;

    /**
     * 容器编码
     */
    @NotBlank(message = "容器编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String containerCode;

    /**
     * 容器名称
     */
    @NotBlank(message = "容器名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String containerName;

    /**
     * 容器状态
     */
    @NotBlank(message = "容器状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String constainsStatus;

    /**
     * 供应商id
     */
    @NotNull(message = "供应商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long supplierId;

    /**
     * 供应商编码
     */
    @NotBlank(message = "供应商编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierCode;

    /**
     * 供应商名称
     */
    @NotBlank(message = "供应商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierName;

    /**
     * 使用时长
     */
    @NotBlank(message = "使用时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private String useTime;


}
